-- ffride (controller)
AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )
include('shared.lua')

function ENT:Initialize()
	self.prefix = self.prefix or "Error - Missing prefix"
	self.ents = self.ents or ents.FindByName(self.prefix .."*")
	
	self.seat = ents.Create("prop_physics")
	self.seat:SetModel( "models/props_c17/tv_monitor01.mdl" )
	
	self:SetNoDraw( false )
	
	self.seat:SetPos(self:GetPos()+Vector(0,0,0))
	--[[--self.seat.HandleAnimation = HandleRollercoasterAnimation
	
	--self.seat:SetParent(self:GetParent())
	--]]
	self.seat:Spawn()
	self.seat:Activate()

	self.seat:SetCollisionGroup(COLLISION_GROUP_DEBRIS)
	self.seat:GetPhysicsObject():EnableGravity( false )

end

function ENT:GetEnts()
	return self.ents
end

function ENT:KeyValue( key, value ) -- Runs before Initialize()!
	if ( key == "prefix" ) then
		self.prefix = value
	end
end

function ENT:Think()
end

function ENT:Use(ply,caller)

end
